<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>预约配置管理</title>
	<meta name="decorator" content="default"/>
		<script type="text/javascript" src="${ctxStatic}/js/tdc/tdcTimesForm.js"></script>
	<script type="text/javascript" src="${ctxStatic}/layer/layer.js"></script>
	
</head>
<body>
	<ul class="nav nav-tabs">
		<%-- <li><a href="${ctx}/times/tdcTimes/">预约配置列表</a></li> --%>
		<li class="active"><a href="${ctx}/times/tdcTimes/form?id=${tdcTimes.id}">预约配置<shiro:hasPermission name="times:tdcTimes:edit">${not empty tdcTimes.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="times:tdcTimes:edit">查看</shiro:lacksPermission></a></li>
	</ul><br/>
	<form:form id="inputForm" modelAttribute="tdcTimes" action="${ctx}/times/tdcTimes/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>		
		<div class="control-group">
			<label class="control-label">星期：</label>
			<div class="controls">
				<form:input path="theWeek" htmlEscape="false" maxlength="10" class="input-medium required" readonly="true"  />
				<%-- <form:select path="theWeek" htmlEscape="false" maxlength="10" class="input-medium required" readonly="readonly">
				
					<form:option value="星期一" label="请选择"/>
					<form:option value="星期一" label="星期一"/>
					<form:option value="星期二" label="星期二"/>
					<form:option value="星期三" label="星期三"/>
					<form:option value="星期四" label="星期四"/>
					<form:option value="星期五" label="星期五"/>
					<form:option value="星期六" label="星期六"/>
					<form:option value="星期天" label="星期天"/>
					<form:options items="${fns:getDictList('theWeek')}" itemLabel="label" itemValue="value" htmlEscape="false" readonly="readonly"/>
				</form:select>  --%>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">上午数量：</label>
			<div class="controls">
				<form:input path="amQuantity" htmlEscape="false" maxlength="3" class="input-medium required"  pattern="^[0-9]{2}$" id="amQuantityId"/>
			   <span class="help-inline"><font color="red" id="nameInfo1">*</font> </span>
				<span class="help-inline"><font>（0-99）</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">下午数量：</label>
			<div class="controls">
				<form:input path="pmQuantity" htmlEscape="false" maxlength="3" class="input-medium required" pattern="^[0-9]{2}$" id="pmQuantityId"/>
				<span class="help-inline"><font color="red" id="nameInfo2">*</font> </span>
				<span class="help-inline"><font>（0-99）</font> </span>
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label">预约时间段开始：</label>
			<div class="controls">
			<form:input path="bespeakStart" htmlEscape="false" maxlength="8" class="input-medium required" pattern="^(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d$" placeholder="HH:mm:ss" id="bespeakStartId"/>
				
					<span class="help-inline"><font color="red" id="nameInfo3">*</font> </span>
					<span class="help-inline"><font>（格式-HH:mm:ss）</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">预约时间段结束：</label>
			<div class="controls">
			<form:input path="bespeakEnd" htmlEscape="false" maxlength="8" class="input-medium required" pattern="^(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d$" placeholder="HH:mm:ss" id="bespeakEndId"/>
				
					<span class="help-inline"><font color="red" id="nameInfo4">*</font> </span>
					<span class="help-inline"><font>（格式-HH:mm:ss）</font> </span>
			</div> 
		</div>
		<div class="control-group">
			<label class="control-label">延长时间：</label>
			<div class="controls">
			<form:select path="bespeakDelay" htmlEscape="false" maxlength="10" class="input-medium ">
					<form:option value="0" label="请选择"/>
					<form:option value="15" label="15分钟"/>
					<form:option value="30" label="30分钟"/>
					<form:option value="60" label="60分钟"/>
					<form:option value="120" label="2小时"/>
					<form:option value="180" label="3小时"/>
					<form:option value="240" label="4小时"/>
					<form:options items="${fns:getDictList('bespeakDelay')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
				
			</div>
		</div>
		<div class="form-actions">
			<shiro:hasPermission name="times:tdcTimes:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
		</div>
	</form:form>
</body>
</html>